if (window.addEventListener) {
    var kkeys = [], konami = "38,38,40,40,37,39,37,39,66,65";
	var triggered = false;
    window.addEventListener("keydown", function(e){
        kkeys.push( e.keyCode );
        if ( kkeys.toString().indexOf( konami ) >= 0 ) {
		    if ( triggered == false ) {
				triggered = true;
				kkeys.length = 0; //add 'autoplay'
				$("div#main").prepend("<div><video class='videoCentre' id='inet4pron' autoplay loop width='window.innerWidth' height='window.innerHeight'><source src='inet4pron.webm' type='video/webm'></video></div>");
				var video = document.getElementById("inet4pron");
				setTimeout(function(){video.webkitRequestFullscreen();}, 50);
				video.webkitRequestFullscreen();
			} else if (triggered == true) {
				triggered = false;
				$("#inet4pron").remove();
						}
		}
        while (kkeys.length >= konami.split(',').length) {
            kkeys.shift();
        }
    }, true);
}